home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK2.toast / Development Kits (Disc 2) / QuickTime™ VR 2.0 SDK / QTVR C⁄C++ Runtime API / Sample Code / VRShell Sample Code / VR3DSound / TestFunctions.h < prev    next >
Encoding:
Text File  |  1997-05-22  |  2.1 KB  |  50 lines  |  [TEXT/MPCC]

  1. //
  2. //    File:        TestFunctions.h
  3. //
  4. //    Contains:    Localized sound support for QuickTime VR movies.
  5. //
  6. //    Written by:    Tim Monroe
  7. //
  8. //    Copyright:    © 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //    Change History (most recent first):
  11. //
  12. //       <1>         12/05/96    rtm        ported earlier 3D sound support functions to VRShell
  13. //       
  14. //
  15.  
  16. // header files
  17.  
  18. #include "Movies.h"
  19. #include "QTVR.h"
  20. #include "QTVRFrmt.h"
  21. #include "Sound.h"
  22. #include "SoundComponents.h"
  23. #include "SoundSprocket.h"
  24.  
  25. #include "MacApplication.h"
  26. #include "MacFramework.h"
  27.  
  28. // constants
  29. #define kObjectDistance            1.0
  30.  
  31. // function prototypes
  32. void                        VR3DSound_Init (void);
  33. ApplicationDataHdl            VR3DSound_InitWindowData (WindowObject theWindowObject);
  34. SndChannelPtr                VR3DSound_CreateLocalizedChannel (void);
  35. SSpSourceReference            VR3DSound_CreateLocalizedSource (void);
  36. void                        VR3DSound_PlaySilence(WindowObject theWindowObject, short theChannelIndex);
  37. void                        VR3DSound_PlayResource(WindowObject theWindowObject, short theChannelIndex, short theResID);
  38. UInt32                        VR3DSound_CountSoundHotSpotsInNode (WindowObject theWindowObject);
  39. void                        VR3DSound_Update3DSoundEnv (WindowObject theWindowObject);
  40. void                        VR3DSound_StartNodeSounds (WindowObject theWindowObject);
  41. void                        VR3DSound_StopNodeSounds (WindowObject theWindowObject);
  42. void                        VR3DSound_DumpNodeSounds (WindowObject theWindowObject);
  43. void                        VR3DSound_InstallPrescreenRoutine (QTVRInstance theInstance, WindowObject theWindowObject);
  44. void                        VR3DSound_InstallInterceptRoutine (QTVRInstance theInstance, WindowObject theWindowObject);
  45. pascal OSErr                VR3DSound_PrescreenRoutine (QTVRInstance theInstance, WindowObject theWindowObject);
  46. pascal void                    VR3DSound_InterceptRoutine (QTVRInstance theInstance, QTVRInterceptPtr theMsg, WindowObject theWindowObject, Boolean *cancel);
  47. pascal OSErr                VR3DSound_EnteringNodeProc (QTVRInstance theInstance, long nodeID, WindowObject theWindowObject);
  48. pascal OSErr                VR3DSound_LeavingNodeProc (QTVRInstance theInstance, long fromNodeID, long toNodeID, Boolean *cancel, WindowObject theWindowObject);
  49. void                        MyTestFunc (QTVRInstance theInstance);
  50.